Conditions | 4 |
Paths | 8 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | Mivhak.component('top-bar-button', { |
||
15 | created: function() { |
||
16 | var $this = this; |
||
17 | if(this.text) this.$el.text(this.text); |
||
18 | if(this.icon) this.$el.addClass('mivhak-icon mivhak-icon-'+this.icon).append($(Mivhak.icons[this.icon])); |
||
19 | if(this.dropdown) |
||
20 | { |
||
21 | $this.$el.append(this.dropdown.$el); |
||
22 | this.onClick = function() { |
||
23 | $this.toggleActivation(); |
||
24 | $this.dropdown.toggle(); |
||
25 | }; |
||
26 | } |
||
27 | }, |
||
28 | methods: { |
||
42 | }); |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.